import rxAjax from '@/assets/js/ajax.js';

//表单日历视图 api接口
export const FormCalendarViewApi = {};

FormCalendarViewApi.baseUrl= '/api-form/form/core/formCalendarView';

FormCalendarViewApi.getDataByKey =function(key,menuId,parameter,appId) {
    parameter.key=key;
    if(menuId){
        parameter.menuId=menuId;
    }
    let url= FormCalendarViewApi.baseUrl + '/getDataByKey';
    if(appId){
        url+="?appId="+appId
    }
    return rxAjax.postForm(url,parameter);
}

/**
 * 校验能否改变设计
 * @param params
 * @returns {*}
 */
FormCalendarViewApi.checkCanChange =function(params) {
    let url= '/api-form/form/core/formDesign/checkCanChange';
    return rxAjax.postJson(url,params);
}



export  default FormCalendarViewApi;

